function Logo(props) {
    const {orgid,orgnization} = props;

    React.useEffect(() => {
        Uts.changeHeader();
    }, []);

    return (
        <div className="zen_f-left zen_h-50 zen_w-180 zen_p-r-20 zen_p-l-20 zen_p-t-8 zen_p-b-2 zen_bdr-0D98A0">
            <img style={{"maxHeight":"40px","maxWidth":"140px"}} className="zen_FFFFFF zen_fs-12" src={getLogoUrl(orgid)} alt={orgnization}></img>
        </div>
    );
}

function getLogoUrl(orgID) {
    let protocol = window.location.protocol;
    let host = window.location.host;
    //return protocol+'//'+host+'/cms/file/downLoad?type=image&category=ORG_LOGO&about='+ orgID +'&serial=1'//旧获取logo的cms的方法
    return protocol+'//'+host+'/oms/organizations/getlogo?orgId='+ orgID +'&logoType=2'
}

export default Logo;